package tata.servant;

import org.apache.dubbo.config.annotation.DubboService;
import tata.ApiFacade;
import tata.Father;
import tata.R.Response;
import tata.X;

import java.util.List;

@DubboService
public class ApiBack implements ApiFacade {
    @Override
    public String api() {
        return "秦始皇";
    }

    @Override
    public Response<Father> father() {
        Father father1 = new Father("1", X.A);
        Father father2 = new Father("2", X.A);
        return Response.success(Father.class).setList(List.of(father1, father2));
    }
}
